import instance from '@/utils/request.js';



export const getMessageList = (params) => {
  return instance({
    url: '/message/list',
    method: 'get',
    params
  })
}


export const addMessage = (data) => {
  return instance({
    url: '/message',
    method: 'post',
    data,
  })
}

export const deleteMessage = (id) => {
  return instance({
    url: `/message/${id}`,
    method: 'delete',
  })
}
